The Dreamweaver JavaScript API > Layer and image map functions > dom.resizeSelectionBy()

 

dom.resizeSelectionBy()

Availability

Dreamweaver 3.0

Description

Resizes the currently selected layer or hotspot.

Arguments

left, top, bottom, right

left is the new position of the left boundary of the layer or hotspot.
top is the new position of the top boundary of the layer or hotspot.
bottom is the new position of the bottom boundary of the layer or hotspot.
right is the new position of the right boundary of the layer or hotspot.

Returns

Nothing.

Enabler

None.

Example

If the selected layer has the Left, Top, Width, and Height properties shown, calling dw.getDocumentDOM().resizeSelectionBy(-10,-30,30,10) would be equivalent to resetting Left to 40, Top to 20, Width to 240, and Height to 240.